package dk.cs.wolverine.shared;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * Testklasse for at se om JDO ville gemme objekter
 * @author Kalle
 *
 */
@PersistenceCapable
public class TestSection {

	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@PrimaryKey
	private Long key;
	
	@Persistent
	private String name;
	
	public Long getKey() {
		return key;
	}

	public void setKey(Long key) {
		this.key = key;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public TestSection() {
		name = "";
	}
	
	public TestSection(String name) {
		this.name = name;
	}
}